home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
orbitrax.swf
/
scripts
/
DefineSprite_683
/
frame_1
/
PlaceObject2_409_11
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2010-11-09
|
829b
|
31 lines
onClipEvent(load){
_name = gameMain.getName();
gameMain.addObjIfHit(this,"hitZone","hitArray");
gameMain.hitArray.push(this);
hitFct = function()
{
for(var _loc1_ in gameMain.type2)
{
gameMain.type2[_loc1_].tcol = true;
}
for(_loc1_ in gameMain.type1)
{
gameMain.type1[_loc1_].tcol = false;
}
for(_loc1_ in gameMain.hitArray)
{
gameMain.hitArray[_loc1_].hitAction = gameMain.hitArray[_loc1_].hitFct;
}
if(gameMain.swapObj.getDepth() > gameMain.elementMap.getDepth())
{
gameMain.elementMap.swapDepths(gameMain.swapObj);
}
if(gameMain.tcount == 3)
{
gameMain.tcount = gameMain.tcount + 1;
}
hitAction = undefined;
};
hitAction = hitFct;
}